<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--
    Document   : cadastrarProduto
    Created on : 01 nov 2011, 11:17:59
    Author     : vinicius
-->
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:a4j="http://richfaces.org/a4j"
      xmlns:rich="http://richfaces.org/rich"
      xmlns:c="http://java.sun.com/jsp/jstl/core"
      xmlns:fn="http://java.sun.com/jsp/jstl/functions">


    <ui:composition template="template.xhtml">
        <ui:define name="title"><h:outputText value="Lista Todas as Reservas" /></ui:define>
        <ui:define name="body">
            <br></br><br></br><br></br><br></br><br></br>

            <div id="datascroller">
                <h:form>

                    <a4j:outputPanel ajaxRendered="true">
                        <rich:dataScroller for="tarefas" maxPages="10" />		

                        <rich:dataTable id="tarefas" rows="5" 
                                        value="#{reservaBusiness.todasReservas}" var="reserva">
                            <f:facet name="header">
                                <rich:columnGroup>
                                    <h:column>
                                        <h:outputText value="#{msgs['reserva.idUser']}" />
                                    </h:column>
                                    <h:column>
                                        <h:outputText value="#{msgs['system.listarVoos']}" />
                                    </h:column>
                                </rich:columnGroup>
                            </f:facet>

                            <h:column>
                                <h:outputText value="#{reserva.idUser}" />
                            </h:column>
                            <h:column>
                                <h:outputText value="#{reserva.numVooReserva}" />
                            </h:column>
                        </rich:dataTable>

                        <rich:dataScroller for="tarefas" maxPages="10" />

                    </a4j:outputPanel>

                </h:form>
            </div>
        </ui:define>
    </ui:composition>
</html>
